import request from '@/utils/request'

//获取题库下拉框
export function queryBankAll(params) {
  return request({
    url: '/quBank/queryAll',
    method: 'post',
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data: params
  })
}
// 题目难度
export function queryQuLevel(params) {
  return request({
    url: '/setting/querySettingAll',
    method: 'get',
    params
  })
}
//获取题库下拉框
export function queryQuType(params) {
  return request({
    url: '/setting/querySettingAll',
    method: 'get',
    params
  })
}
// 部门数据
export function queryDeptTree(params) {
  return request({
    url: '/sysDept/treeList',
    method: 'get',
    params
  })
}


// 上传头像
export function uploadUserHead(params) {
  return request({
    url: '/file/uploadUserHead',
    method: 'post',
    headers: {
      "Content-Type": "multipart/form-data",
    },
    data: params
  })
}
